package com.carleasoft.mps.adu.business.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.adu.business.user.bean.entity.MAuthorityUserDynamic;
import com.carleasoft.mps.adu.business.user.bean.po.MAuthorityUserDynamicPo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityDeptCountVo;
import com.carleasoft.mps.adu.business.user.bean.vo.MAuthorityUserDynamicVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.util.List;

/**
 * 人员动态Service接口
 * 
 * @author yiSl
 * @date 2024-04-12
 */
public interface IMAuthorityUserDynamicService extends IService<MAuthorityUserDynamic>
{
    /**
     * 查询人员动态
     * 
     * @param id 人员动态主键
     * @return 人员动态
     */
    public MAuthorityUserDynamicVo selectMAuthorityUserDynamicById(Integer id);

    /**
     * 查询人员动态列表
     * 
     * @param mAuthorityUserDynamicPo 人员动态
     * @return 人员动态集合
     */
    public Page<MAuthorityUserDynamicVo> selectMAuthorityUserDynamicList(Page page, MAuthorityUserDynamicPo mAuthorityUserDynamicPo);

    /**
     * 新增人员动态
     * 
     * @param mAuthorityUserDynamic 人员动态
     * @return 结果
     */
    public boolean insertMAuthorityUserDynamic(MAuthorityUserDynamic mAuthorityUserDynamic);

    /**
     * 根据部门Code分钟求和总条数
     * @return
     */
    public List<MAuthorityDeptCountVo> selectMAuthorityDeptCountByDeptCode();

    /**
     * 修改人员动态
     * 
     * @param mAuthorityUserDynamic 人员动态
     * @return 结果
     */
    public boolean updateMAuthorityUserDynamic(MAuthorityUserDynamic mAuthorityUserDynamic);

    /**
     * 删除人员动态信息
     * 
     * @param id 人员动态主键
     * @return 结果
     */
    public boolean deleteMAuthorityUserDynamicById(Integer id);

    /**
     * 导入人员动态
     * @param file
     * @return
     */
    boolean userDynamicExcel(MultipartFile file);

    /**
     * 导出人员动态
     * @param startTime
     * @param response
     * @return
     */
    boolean export(String startTime, HttpServletResponse response);

}
